<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>我的手机旅行社</title>
    <include file="Template/head"/>
    <?php
require_once "./App/Home/Common/jssdk.php";
$jssdk = new JSSDK("wx50158a5e179525ab", "d4065289c8314cbb82bb64d58eda674b");
$signPackage = $jssdk->GetSignPackage();
    ?>
<body>
<div class="wapper">
    <header class="header clearfix">
        <if condition="$agency['bg_pic'] neq ''">
            <div class="bg" style="background: url('{$bgPic}')">
                <span style="float:right;margin-top:125px;margin-right:11px;color:#DCAC6C">长按识别二维码</span>
            </div>
            <else/>
            <div class="bg" style="background: url('http://demo.dalvu.com/public/images/header-bg.jpg')">
                <span style="float:right;margin-top:125px;margin-right:11px;color:#DCAC6C">长按识别二维码</span>
            </div>
        </if>

        <dl class="adviser pull-left">
            <dt>
                <a href="{:U('WxJsAPI/personal')}">
                    <img class="lazy headPic" data-original="{$headPic}" alt="">
                </a>
            </dt>
            <dd>
                <p class="name">
                    <if condition="$userList['nick_name'] eq ''">
                        {$userList['name']}
                        <else/>
                        {$userList['nick_name']}
                    </if>
            <?php echo $signPackage["appId"];?>
                </p>
                <a style="color:white;"
                   href="tel:{$userList['mobile']}">TEL:{$userList['mobile']}</a>
            </dd>
        </dl>
        <if condition="$agency['weixin_qrcode'] neq ''">
            <img src="{$weixinQrcode}" class="pull-right codeimg"/>
            <else/>
            <img src="http://cdn.lydlr.com/public/images/temp/2.jpg" class="pull-right codeimg">
        </if>
    </header>
<!--    <div id="scroll" class="text-left"
         style="height: 30px;line-height: 30px;width: 100%;padding-left:10px;background-color: #6C6C6C">
        <ul>
            <if condition="$marqueeNum eq 1">
                <a href="{:U('Agency/details',array('id' => $promotionList[0]['id']))}">
                    <img src="__PUBLIC__/images/t-1.png">
                    <span style="color: white">{$promotionList.0.name|msubstr=0,15, 'utf-8', false}</span>
                    <span class="pull-right" style="color:orangered;padding-right:10px;">详情</span>
                </a>
            </if>
            <if condition="$marqueeNum gt 1">

                <volist name="promotionList" id="vo">
                    <li>
                        <a href="{:U('Agency/details',array('id' => $vo['id']))}">
                            <img src="__PUBLIC__/images/t-1.png">
                            <span style="color: white">{$vo.name|msubstr=0,20, 'utf-8', false}</span>
                            <span class="pull-right" style="color:orangered;padding-right:10px;">详情</span>
                        </a>
                    </li>
                </volist>
            </if>
        </ul>

    </div>-->
    <div class="module">
        <ul class="navlist clearfix">
            <volist name='Column_list' id='vo'>
              <li>
                <a href="{$vo.url}">
                    <span class="icon i-{$vo.icon}"></span>

                    <p>{$vo.name}</p>
                </a>
              </li>
            </volist>
        </ul>
        <div class="searchbox">
            <form method="post" action="">
                <input type="text" class="txt" name="names" placeholder="支持模糊搜索：线路、景点、代码"/>
                <input type="submit" value="搜索" class="sbtn"/>
            </form>
        </div>
        <div class="clearfix"></div>
    </div>
<if condition='$search eq 0'>
    <div class="module recLine">
        <h2 class="h2t"><i></i>限时特价</h2>

        <div class="con">
            <volist name="topTours" id="vo">

                <dl class="item clearfix">
                    <dt>
                        <a href="{:U('Agency/details',array('id'=>$vo['id']))}">
                            <if condition="$vo['cover_pic'] eq ''">
                                <img class='lazy headPic'
                                     data-original="http://cdn.lydlr.com/public/images/temp/1.jpg"/>
                                <else/>
                                <img class='lazy headPic' data-original="{$Pic_topTours[$key]}"/>
                            </if>
                        </a>
                    </dt>
                    <dd>
                        <a href="{:U('Agency/details',array('id'=>$vo['id']))}">
                            <p class="name" style="overflow: visible;height: auto">{$vo.name|msubstr=0,10,'utf-8',false}</p>
                            <span style="background-color:#1e86d4;color:white;padding: 2px 5px; border-radius: 3px;">{$vo.departure|getOneDeparture} 出发</span>
                            <span class="price"><dfn>&yen;{$vo.min_price|GetYuan}</dfn>起</span>
                        </a>
                    </dd>

                </dl>
            </volist>
        </div>
    </div>
    <notempty name='agencyMyTourList'>
    <div class="module recLine">
        <h2 class="h2t"><i></i>推荐线路</h2>

        <div class="con">
            <volist name="agencyMyTourList" id="vo">

                <dl class="item clearfix">
                    <dt>
                        <a href="{:U('Agency/details',array('id'=>$vo['id']))}">
                            <if condition="$vo['cover_pic'] eq ''">
                                <img class='lazy headPic'
                                     data-original="http://cdn.lydlr.com/public/images/temp/1.jpg"/>
                                <else/>
                                <img class='lazy headPic' data-original="{$Pic_agencyMyTourList[$key]}"/>
                            </if>
                        </a>
                    </dt>
                    <dd>
                        <a href="{:U('Agency/details',array('id'=>$vo['id']))}">
                            <p class="name" style="overflow: visible;height: auto">{$vo.name|msubstr=0,10,'utf-8',false}</p>
                            <span style="background-color:#1e86d4;color:white;padding: 2px 5px; border-radius: 3px;">{$vo.departure|getOneDeparture} 出发</span>
                            <span class="price"><dfn>&yen;{$vo.min_price|GetYuan}</dfn>起</span>
                        </a>
                    </dd>

                </dl>
            </volist>
        </div>
    </div>
    </notempty>
    <div class="module recLine">
        <h2 class="h2t"><i></i>优选线路</h2>

        <div class="con">
            <volist name="list" id="vo">

                <dl class="item clearfix">
                    <dt>
                        <a href="{:U('Agency/details',array('id'=>$vo['id']))}">

                            <if condition="$vo['cover_pic'] eq ''">
                                <img class='lazy headPic'
                                     data-original="http://cdn.lydlr.com/public/images/temp/1.jpg"/>
                                <else/>
                                <img class='lazy headPic' data-original="{$Pic[$key]}"/>
                            </if>
                        </a>
                    </dt>
                    <dd>
                        <a href="{:U('Agency/details',array('id'=>$vo['id']))}">
                            <p class="name" style="overflow: visible;height: auto">{$vo.name|msubstr=0,10,'utf-8',false}</p>
                            <span style="background-color:#1e86d4;color:white;padding: 2px 5px; border-radius: 3px;">{$vo.departure|getOneDeparture} 出发</span>
                            <span class="price"><dfn>&yen;{$vo.min_price|GetYuan}</dfn>起</span>
                        </a>
                    </dd>

                </dl>
            </volist>
        </div>
    </div>
    <else />
    <div class="module recLine">
        <h2 class="h2t"><i></i>搜素线路</h2>

        <div class="con">
            <empty name="list">
             <div class="alert alert-danger">您搜索的内容不存在, 请重新输入</div>
             <else />
              <volist name="list" id="vo">

                <dl class="item clearfix">
                    <dt>
                        <a href="{:U('Agency/details',array('id'=>$vo['id']))}">

                            <if condition="$vo['cover_pic'] eq ''">
                                <img class='lazy headPic'
                                     data-original="http://cdn.lydlr.com/public/images/temp/1.jpg"/>
                                <else/>
                                <img class='lazy headPic' data-original="{$Pic[$key]}"/>
                            </if>
                        </a>
                    </dt>
                    <dd>
                        <a href="{:U('Agency/details',array('id'=>$vo['id']))}">
                            <p class="name" style="overflow: visible;height: auto">{$vo.name|msubstr=0,10,'utf-8',false}</p>
                            <span style="background-color:#1e86d4;color:white;padding: 2px 5px; border-radius: 3px;">{$vo.departure|getOneDeparture} 出发</span>
                            <span class="price"><dfn>&yen;{$vo.min_price|GetYuan}</dfn>起</span>
                        </a>
                    </dd>

                </dl>
            </volist>
                </empty>   
        </div>
    </div>
</if>
<!--    <div class="module allDes">
        <h2 class="h2t"><i></i>全部目的地</h2>

        <div class="con">
            <ul class="list">
                <li>
                    <h3 class="h3t"><a href="#">国内</a></h3>

                    <div class="item clearfix">
                        <foreach name="inboundDestinationList" item="vo">
                            <div class="col-4"><a
                                    href="{:U('Inbound/lists',array('id'=>$vo['id']))}">{$vo.destination}</a></div>
                        </foreach>
                        <div class="col-4 more"><a href="{:U('Inbound/index')}">更多<em>+</em></a></div>
                    </div>
                </li>
                <li class="last">
                    <h3 class="h3t"><a href="#">出境</a></h3>

                    <div class="item clearfix">
                        <foreach name="outboundDestinationList" item="vo">
                            <div class="col-4"><a
                                    href="{:U('Outbound/lists',array('id'=>$vo['id']))}">{$vo.destination}</a></div>
                        </foreach>
                        <div class="col-4 more"><a href="{:U('Outbound/index')}">更多<em>+</em></a></div>
                    </div>
                </li>
            </ul>
        </div>
    </div>-->

    <footer style="display: none">
        <include file="Template/foot"/>
    </footer>
    <p style="background-color: #F4F4F4;height:75px;border:0;padding:0;line-height: 20px;margin-top: 0px;font-family: '微软雅黑';font-size:13px;"
       class="text-center">大旅提供技术支持</p>


    <div class="actBot navbar-fixed-bottom"
         style="padding: 0;background-color: white;max-width: 720px;margin: 0 auto;font-size: 12px;">
        <ul class="list clearfix">
            <li>
                <if condition="$Think.session.isLogin eq yes">

                    <a href="javascript:void(0)" class="shopKeeper">
                        <i class="i-1"></i>我要开店
                    </a>
                    <else/>
                    <a href="javascript:void(0)" class="stores">
                        <i class="i-1"></i>我要开店
                    </a>
                </if>
            </li>
            <li>
                <a href="{:U('WxJsAPI/personal')}">
                    <i class="i-2"></i>个人中心
                </a>
            </li>
            <li>
            <if condition="$Think.session.isLogin eq yes">
                <a href="javascript:void(0)" class="friendRemind_login">
                    <i class="i-3"></i>意见反馈
                </a>
                <else />
                <a href="javascript:void(0)" class="friendRemind">
                    <i class="i-3"></i>意见反馈
                </a>
            </if>
            </li>
            <li>
                <a href="tel:{$userList['mobile']}" class="contactff">
                    <i class="i-4"></i>联系方式
                </a>
            </li>
        </ul>
    </div>
</div>

<div class="modal fade popWin bs-example-modal-sm" id="myModalmob" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                        aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">提示</h4>
            </div>
            <div class="modal-body text-center">
                <p class="tipsBox"><i class="suc">亲，如有问题请联系：{$userList.mobile}</i></p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-warning" data-dismiss="modal" aria-label="Close">确认</button>
                <button type="button" class="btn btn-default" data-dismiss="modal" aria-label="Close">取消</button>
            </div>
        </div>
    </div>
</div>


<div class="modal fade popWin bs-example-modal-sm" id="myModalstore" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                        aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">提示</h4>
            </div>
            <div class="modal-body text-center">
                <p class="tipsBox"><i class="suc">亲，您已是店老大了哦</i></p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-warning" data-dismiss="modal" aria-label="Close">确认</button>
                <button type="button" class="btn btn-default" data-dismiss="modal" aria-label="Close">取消</button>
            </div>
        </div>
    </div>
</div>

<div class="modal fade popWin bs-example-modal-sm" id="myModalstores" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                        aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">提示</h4>
            </div>
            <div class="modal-body text-center">
                <p class="tipsBox"><i class="suc">亲，想开店联系店主，电话：{$userList.mobile}</i></p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-warning" data-dismiss="modal" aria-label="Close">确认</button>
                <button type="button" class="btn btn-default" data-dismiss="modal" aria-label="Close">取消</button>
            </div>
        </div>
    </div>
</div>

<div class="modal fade popWin bs-example-modal-sm" id="myModalNotice" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                        aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">提示</h4>
            </div>
            <div class="modal-body text-center">
                <p class="tipsBox"><i class="suc">评论</i></p>
                <input type="number" id="dl_star" >
                <input type="text" id="comm_content" >
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-warning" data-dismiss="modal" aria-label="Close" id="saveAdviserFeedback">确认</button>
                <button type="button" class="btn btn-default" data-dismiss="modal" aria-label="Close">取消</button>
            </div>
        </div>
    </div>
</div>
<div class="modal fade popWin bs-example-modal-sm" id="myModalSupplier" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                        aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">提示</h4>
            </div>
            <div class="modal-body text-center">
                <p class="tipsBox"><i class="suc">评论</i></p>
                <select name="supplier" id='dl_supplier_id'> 
                <option value="0"  selected = "selected">请选择供应商</option> 
                <volist name="supplier" id="vo">
                <option value="{$vo.id}">{$vo.name}</option> 
                </volist>
                </select><br/>
                <input type="number" id="dl_star_login" ><br/>
                <input type="text" id="comm_content_login" >
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-warning" data-dismiss="modal" aria-label="Close" id="saveAdviserFeedback_login">确认</button>
                <button type="button" class="btn btn-default" data-dismiss="modal" aria-label="Close">取消</button>
            </div>
        </div>
    </div>
</div>
    <input type="hidden" id="feddback_url" value="{:U('personal/agencyFeedback')}">
<script src="__PUBLIC__/js/scroll.js?v=1"></script>
<script src="__PUBLIC__/js/friendRemind.js?v=1"></script>
<script>
    wx.config({
        debug: false,
        appId: '<?php echo $signPackage["appId"];?>',
        timestamp: '<?php echo $signPackage["timestamp"]; ?>',
        nonceStr: '<?php echo $signPackage["nonceStr"];?>',
        signature: '<?php echo $signPackage["signature"];?>',
        jsApiList: [
            'onMenuShareTimeline',
            'onMenuShareAppMessage',
            'onMenuShareQQ',
        ]
    });

    wx.ready(function () {
        var shareData = {
            desc: "我的手机旅行社",
            title: "{$title}",
            link: "{$domain}",
            imgUrl: '{$headPic}',
        };
        wx.onMenuShareTimeline(shareData);
        wx.onMenuShareAppMessage(shareData);
        wx.onMenuShareQQ(shareData);
    });

</script>
</body>
</html>
